package city.spring.modules.reception.vo;

import city.spring.modules.reception.entity.OldmanActiveEntity;
import city.spring.modules.work.entity.WorkPlanEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author HouKunLin
 * @date 2020/6/4 0004 16:46
 * @see WorkPlanEntity
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class OldmanActiveVO extends OldmanActiveEntity {
    /**
     * 该活动关联的人员列表信息
     */
    private List<OldmanActiveExtVO> oldmans;

    public OldmanActiveVO(OldmanActiveEntity entity) {
        super.setId(entity.getId());
        super.setTitle(entity.getTitle());
        super.setTheme(entity.getTheme());
        super.setAddress(entity.getAddress());
        super.setType(entity.getType());
        super.setOrganizer(entity.getOrganizer());
        super.setPhone(entity.getPhone());
        super.setStartTime(entity.getStartTime());
        super.setEndTime(entity.getEndTime());
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
